

export default {
	state: {
		promoterDrawer: false,
		flowPermission: [],
		approverDrawer: false,
		approverConfig: {},
		copyerDrawer: false,
		copyerConfig: {},
		conditionDrawer: false,
		conditionsConfig: {
			conditionNodes: []
		}
	},
	getters: {
		flowDesignPromoterDrawer: state => state.promoterDrawer,
		flowDesignApproverDrawer: state => state.approverDrawer,
		flowDesignCopyerDrawer: state => state.copyerDrawer,
		flowDesignConditionDrawer: state => state.conditionDrawer,
		flowDesignFlowPermission: state => state.flowPermission,
		flowDesignApproverConfig: state => state.approverConfig,
		flowDesignCopyerConfig: state => state.copyerConfig,
		flowDesignConditionsConfig: state => state.conditionsConfig

	},
	mutations: {
		updatePromoter(status, promoterDrawer) {
			status.promoterDrawer = promoterDrawer
		},
		updateFlowPermission(status, flowPermission) {
			status.flowPermission = flowPermission
		},
		updateApprover(status, approverDrawer) {
			status.approverDrawer = approverDrawer
		},
		updateApproverConfig(status, approverConfig) {
			status.approverConfig = approverConfig
		},
		updateCopyer(status, copyerDrawer) {
			status.copyerDrawer = copyerDrawer
		},
		updateCopyerConfig(status, copyerConfig) {
			status.copyerConfig = copyerConfig
		},
		updateCondition(status, conditionDrawer) {
			status.conditionDrawer = conditionDrawer
		},
		updateConditionsConfig(status, conditionsConfig) {
			status.conditionsConfig = conditionsConfig
		}
	},
	actions: {}
};
